package com.zrwl.poscloud.base.enums;

/**
 * 社交账号类型枚举类
 *
 * @Author: liusitong
 * @Date: 2020年2月12日11:59:04
 */
public enum EIBatchType {

    /**
     * 持卡人账户
     */
    employeeAccountOpen(2, "持卡人账户"),

    /**
     * 部门
     */
    deptBatch(3, "部门"),

    /**
     *  持卡人变动
     */
    employeeAccountEdit(4, "持卡人变动"),

    /**
     * 开卡
     */
    icCardOpen(5, "开卡"),

    /**
     * 卡务参数变更
     */
    icCardEdit(6, "卡务参数变更");

    private final int type;
    private final String name;

    EIBatchType(int type, String name) {
        this.type = type;
        this.name = name;
    }

    public int getType() {
        return type;
    }

    public String getName() {
        return name;
    }

    public static EIBatchType getByValue(int value) {
        for (EIBatchType batchType : values()) {
            if (batchType.getType() == value) {
                return batchType;
            }
        }
        return null;
    }
}